﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Mojito.Data.Entities
{
    public class Sys_Account
    {
        #region 账号信息

        [Key]
        [StringLength(50)]
        public string Id { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        [Required]
        [DisplayName("用户名")]
        public string Username { get; set; }
        /// <summary>
        ///  密码 32位MD5 小写
        /// </summary>
        [Required]
        [DisplayName("密码")]
        public string Password { get; set; }
        /// <summary>
        ///  密码错误尝试次数
        /// </summary>
        [DisplayName("密码错误尝试次数")]
        public int TryCount { get; set; }
        /// <summary>
        ///  是否激活
        /// </summary>
        [DisplayName("是否激活")]
        public bool IsActive { get; set; }

        #endregion

        #region 其他信息
        /// <summary>
        ///  头像照片
        /// </summary>
        public string Photo { get; set; }
        /// <summary>
        ///  姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        ///  手机号码
        /// </summary>
        public string TelPhone { get; set; }
        /// <summary>
        ///  邮箱
        /// </summary>
        public string Email { get; set; }
        #endregion
    }
}
